using System;
using System.Web;
using GADC.Dao;
using NHibernate.SqlTypes;
using System.Data;
using System.Data.OracleClient;

namespace GADC.Dao
{
    public class MyOracleDriver : NHibernate.Driver.OracleClientDriver
    {
        protected override void InitializeParameter(
            IDbDataParameter dbParam,
            string name,
            SqlType sqlType)
        {
            base.InitializeParameter(dbParam, name, sqlType);
            
            
            if (sqlType is StringClobSqlType)
            {
                OracleParameter parameter = (OracleParameter)dbParam;
                parameter.OracleType = OracleType.Clob;
            }

        }
    }
}
